package com.xxxcompany.shop.entity;

public class Goods {
	int id;
	String gname;
	int gprice;
	int cid;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getGname() {
		return gname;
	}
	public void setGname(String gname) {
		this.gname = gname;
	}
	public int getPrice() {
		return gprice;
	}
	public void setPrice(int gprice) {
		this.gprice = gprice;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public Goods() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Goods(int id, String gname, int price, int cid) {
		super();
		this.id = id;
		this.gname = gname;
		this.gprice = price;
		this.cid = cid;
	}
	@Override
	public String toString() {
		return "Goods [id=" + id + ", gname=" + gname + ", price=" + gprice + ", cid=" + cid + "]";
	}
	
}
